package com.totowoo.shirodemo.security;

import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.SimpleAuthenticationInfo;
import org.apache.shiro.realm.AuthenticatingRealm;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class QQRealm extends AuthenticatingRealm {
	private static final Logger log = LoggerFactory.getLogger(QQRealm.class);

	@Override
	protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException {
		log.info("QQRealm called");
		AuthenticationInfo info = new SimpleAuthenticationInfo("xx", "xx", null, getName());
		return null;
		//return info;
	}

}
